package com.miplus.ccrm.admin.mapper;

import com.miplus.ccrm.admin.controller.vo.GrpIDResVo;
import com.miplus.ccrm.admin.controller.vo.GrpInfoVo;
import com.miplus.ccrm.admin.controller.vo.GrpTreeResVo;
import com.miplus.ccrm.admin.controller.vo.NamesResVo;
import com.miplus.ccrm.admin.pojo.SysGrp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
* @author pc
* @description 针对表【sys_grp】的数据库操作Mapper
* @createDate 2024-03-01 14:16:59
* @Entity com.miplus.ccrm.admin.pojo.SysGrp
*/

@Mapper
public interface SysGrpMapper extends BaseMapper<SysGrp> {
    List<GrpTreeResVo> grpTreeByUsrID(String usrid);

    List<GrpTreeResVo> getActiveGrp(String pid,String gtype);

    List<GrpIDResVo> userMgrList(String usrid);

    List<NamesResVo> getPermGrpList(String usrid,String gtype);

    List<NamesResVo> getActiveGrpList(String gtype);

    GrpInfoVo getMyGrpInfo(String usrid);
}




